package pc29;

import java.util.Scanner;
public class J10Retangle {
	public static void main(String[] args) {
		
		double width;
		double height;
		String color = "";
		double Area, Perimeter;
		
		//입력받기
		Scanner sc = new Scanner(System.in);
		
		System.out.println("width 와 height 입력 : ");
		width = sc.nextDouble();
		height = sc.nextDouble();
		
		System.out.println("color 입력 : ");
		color = sc.next();
		sc.close();
		
		//계산
		Area = getArea(width,height);
		Perimeter = getPerimeter(width,height);
		
		System.out.println("면적 : "+Area);
		System.out.println("둘레 : "+Perimeter);
		System.out.println("색 : "+color);
		
	}
	
	public static double getArea(double width, double height){
		double Area;
		Area = width * height;
		return Area;
		
	}
	public static double getPerimeter(double width, double height){
		double Perimeter;
		Perimeter = (width + height) * 2;
		return Perimeter;
		
	}
}
